class OverseasPayM {
  OverseasPayM({
      this.businessNumber, 
      this.transactionNumber, 
      this.productNumber, 
      this.productAbilityCode, 
      this.outTradeNumber, 
      this.paymentAmount, 
      this.paymentState, 
      this.secureToken, 
      this.qrCode,});

  OverseasPayM.fromJson(dynamic json) {
    businessNumber = json['business_number'];
    transactionNumber = json['transaction_number'];
    productNumber = json['product_number'];
    productAbilityCode = json['product_ability_code'];
    outTradeNumber = json['out_trade_number'];
    paymentAmount = json['payment_amount'];
    paymentState = json['payment_state'];
    secureToken = json['secure_token'];
    qrCode = json['qr_code'];
  }
  String? businessNumber;
  String? transactionNumber;
  String? productNumber;
  String? productAbilityCode;
  String? outTradeNumber;
  num? paymentAmount;
  String? paymentState;
  String? secureToken;
  String? qrCode;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['business_number'] = businessNumber;
    map['transaction_number'] = transactionNumber;
    map['product_number'] = productNumber;
    map['product_ability_code'] = productAbilityCode;
    map['out_trade_number'] = outTradeNumber;
    map['payment_amount'] = paymentAmount;
    map['payment_state'] = paymentState;
    map['secure_token'] = secureToken;
    map['qr_code'] = qrCode;
    return map;
  }

}


class FiuuPayM {
  FiuuPayM({
    this.contentData,
    this.outTradeNo,
    this.payApi,});

  FiuuPayM.fromJson(dynamic json) {
    contentData = json['content_data'] != null ? ContentData.fromJson(json['content_data']) : null;
    outTradeNo = json['out_trade_no'];
    payApi = json['pay_api'];
  }
  ContentData? contentData;
  String? outTradeNo;
  String? payApi;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (contentData != null) {
      map['content_data'] = contentData?.toJson();
    }
    map['out_trade_no'] = outTradeNo;
    map['pay_api'] = payApi;
    return map;
  }

}


class ContentData {
  ContentData({
    this.amount,
    this.orderid,
    this.billName,
    this.billEmail,
    this.billMobile,
    this.billDesc,
    this.currency,
    this.channel,
    this.returnurl,
    this.vcode,
    this.callbackurl,
    this.country,
    this.cancelurl,
    this.waittime,});

  ContentData.fromJson(dynamic json) {
    amount = json['amount'];
    orderid = json['orderid'];
    billName = json['bill_name'];
    billEmail = json['bill_email'];
    billMobile = json['bill_mobile'];
    billDesc = json['bill_desc'];
    currency = json['currency'];
    channel = json['channel'];
    returnurl = json['returnurl'];
    vcode = json['vcode'];
    callbackurl = json['callbackurl'];
    country = json['country'];
    cancelurl = json['cancelurl'];
    waittime = json['waittime'];
  }
  String? amount;
  String? orderid;
  String? billName;
  String? billEmail;
  String? billMobile;
  String? billDesc;
  String? currency;
  String? channel;
  String? returnurl;
  String? vcode;
  String? callbackurl;
  String? country;
  String? cancelurl;
  num? waittime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['amount'] = amount;
    map['orderid'] = orderid;
    map['bill_name'] = billName;
    map['bill_email'] = billEmail;
    map['bill_mobile'] = billMobile;
    map['bill_desc'] = billDesc;
    map['currency'] = currency;
    map['channel'] = channel;
    map['returnurl'] = returnurl;
    map['vcode'] = vcode;
    map['callbackurl'] = callbackurl;
    map['country'] = country;
    map['cancelurl'] = cancelurl;
    map['waittime'] = waittime;
    return map;
  }

}